-
Notifications
You must be signed in to change notification settings - Fork 832
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
zephyr no malloc #7438
zephyr no malloc #7438
Conversation
julek-wolfssl
commented
Apr 17, 2024
- cert gen
- csr gen
- pkcs12
- Compiles for Zephyr 3.4.0 and 2.7.4
- Add support for CONFIG_POSIX_API
5e836f9
to
b117d03
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Seems like the default memory sizes increased and consider splitting this PR between PKCS12 fixes and Zephyr updates.
@@ -3668,11 +3668,13 @@ char* mystrnstr(const char* s1, const char* s2, unsigned int n) | |||
|
|||
#elif defined(WOLFSSL_ZEPHYR) | |||
|
|||
void* wolfsslThreadHeapHint = NULL; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider using the mechanic being introduced in #7478. This would allow your code to continue to pass NULL's in here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll wait for that PR to merge and use it instead. Good idea.
#undef HAVE_FFDHE_2048 | ||
#define HAVE_FFDHE_2048 | ||
|
||
#define WOLFSSL_NO_MALLOC |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe add #undef WOLFSSL_NO_MALLOC?
Consider adding small stack as well to increase the pressure on the static memory?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding the undef
. I'll leave it as is for now as this is configuration being used by users.
13d7460
to
a4d8274
Compare
- cert gen - csr gen - pkcs12 - Compiles for Zephyr 3.4.0 and 2.7.4 - Add support for CONFIG_POSIX_API
Co-authored-by: Bill Phipps <[email protected]>
a4d8274
to
e35402b
Compare
e35402b
to
14ce8ce
Compare
zephyr no malloc